﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CreateEdit.aspx.cs" Inherits="Student_CreateEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <h3>
        Create/Edit</h3>
    <hr />
    <div>
        <asp:ValidationSummary ID="vsStudentSummary" ValidationGroup="studentProfile" runat="server" />
    </div>
    <asp:HiddenField ID="hidStudentId" runat="server" Value="-1" />
    <table>
        <tr>
            <td>
                First Name:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtFirstName" Width="200px" MaxLength="150" AutoCompleteType="FirstName" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                DOB:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDOB" Width="120px" MaxLength="20" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Last Name:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtLastName" MaxLength="150" AutoCompleteType="LastName"
                    Width="200px" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Last name is required!"
                    ControlToValidate="txtLastName" Text="*" ValidationGroup="studentprofile"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                Gender:
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlGender">
                    <asp:ListItem Value="M" Text="Male" />
                    <asp:ListItem Value="F" Text="Female" />
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                NRIC:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtNRIC" MaxLength="50" Width="180px" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                Contact Type:
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlContactType">
                    <asp:ListItem Value="1" Text="Residential" />
                    <asp:ListItem Value="2" Text="Mobile" />
                    <asp:ListItem Value="3" Text="Office" />
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                Email:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmail" MaxLength="250" AutoCompleteType="Email"
                    Width="200px" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                Contact No.:
            </td>
            <td>
                <table cellspacing="2" border="0">
                    <tr>
                        <td>
                            <asp:TextBox runat="server" ID="txtContactNo" Width="120px" MaxLength="50" />
                        </td>
                        <td>
                            Ext:
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtExtension" Width="40px" MaxLength="20" />
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td colspan="4">
                <asp:Label ID="lblMessage" Font-Bold="true" ForeColor="Red" runat="server" Text=""></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnSubmit" ValidationGroup="studentprofile" runat="server" Text="Submit"
                    OnClick="btnSubmit_Click" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>

